﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmChangePassword.aspx.cs"
    Inherits="Meotom.Upload.v2.Account.FrmChangePassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        * { margin: 0; padding: 0; }
        body { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; background-color: #EEEEEE; }
        .LoginFrm { background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #E5E5E5; border-radius: 10px 10px 10px 10px; float: left; font-weight: normal; margin-left: 8px; margin-top: 20px; padding: 16px 16px 15px; width: 410px; }
        .pLogin, .inline { color: #777777; font-size: 13px; }
        .login_right input { background: none repeat scroll 0 0 #FBFBFB; border: 1px solid #E5E5E5; font-size: 24px; margin-bottom: 16px; margin-right: 6px; margin-top: 2px; padding: 3px; width: 97%; width: 400px; }
        .loginLine { float: left; width: 100%; }
        .submit { border: 1px solid #DFDFDF; cursor: pointer; font-size: 11px !important; line-height: 16px; width: auto !important; color: #FFF; font-weight: bold; }
        .failureNotification { color: #FF0000; float: left; }
        .ctLogin { float: left; }
        #divLoading { color: #000; position: fixed; top: 0px; left: 0px; line-height: 26px; z-index: 100; padding-left: 10px; padding-right: 10px; font-weight: bold; border: solid 0px #FFF; background-color: #CCC; display: none; }
    </style>
    <script language="javascript" type="text/javascript">
        if (window == window.top) {
            location.href = "/";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="divLoading" runat="server">
        <ProgressTemplate>
            Loading... Please wait!
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="LoginFrm clearfix">
                <h2>
                    Đổi mật khẩu</h2>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" ShowSummary="false" ShowMessageBox="False" />
                <div style="margin-top: 20px; float: left;">
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" Display="Dynamic"
                        ControlToValidate="txtOldPass" CssClass="failureNotification" ErrorMessage="* Mật khẩu cũ không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Mật khẩu cũ không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                        ControlToValidate="txtNewPass" CssClass="failureNotification" ErrorMessage="* Mật khẩu mới không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Mật khẩu mới không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" CssClass="failureNotification"
                        ControlToCompare="txtNewPass" ControlToValidate="txtReNewPass" ErrorMessage="* Xin vui lòng xác nhận lại mật khẩu."
                        Display="Dynamic" ValidationGroup="LoginUserValidationGroup">* Xin vui lòng xác nhận lại mật khẩu.<br/></asp:CompareValidator>
                    <div class="failureNotification" runat="server" id="lblError">
                    </div>
                </div>
                <div class="ctLogin" style="margin-top: 20px;">
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Mật khẩu cũ:</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtOldPass" TextMode="Password" runat="server" CssClass="textEntry"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Mật khẩu mới:</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtNewPass" TextMode="Password" runat="server" CssClass="textEntry"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Nhập lại mật khẩu:</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtReNewPass" TextMode="Password" runat="server" CssClass="textEntry"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="loginLine">
                            <div class="sign_left" style="float: left;">
                                &nbsp;
                            </div>
                            <div class="login_right" style="float: right;">
                                <asp:Button ID="ChangePasswordButton" runat="server" CssClass="submit" Style="background-color: rgb(33, 117, 155);"
                                    CommandName="Login" Text="Đổi mật khẩu" ValidationGroup="LoginUserValidationGroup"
                                    OnClick="ChangePasswordButton_OnClick" />
                                <input type="button" name="btnCancel" class="submit" style="color: #000;" id="btnCancel"
                                    onclick="javascript:parent.$.fancybox.close();" value="Hủy bỏ" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
